<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/blockclassify/addclassify" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>
        <if condition="isset($res)">
          修改分类
          <else />添加分类
        </if>
      </h1>
    </div>
    <if condition="isset($res)">
      <form id="J_form" action="{:URL('cms/BlockClassify/editClassify')}" method="post">
        <else />
        <form id="J_form" action="{:URL('cms/BlockClassify/doAddClassify')}" method="post">
    </if>
    <div class="form">
      <input type="hidden" value="{$res.id}" name="id" />
      <dl class="kv">
        <dt>
          <label>分类名称：</label>
        </dt>
        <dd>
          <input class="input-text" type="text" name="classify_name" id="classify_name" value="{$res.classify_name}" required />
          <font color="red">*</font>
          <div class="kv-error"></div>
        </dd>
      </dl>
      <dl class="kv">
        <dt>
          <label>备注：</label>
        </dt>
        <dd>
          <textarea rows="5" cols="100" name="remark">{$res.remark}</textarea>
        </dd>
      </dl>
      <div class="actions">
        <if condition="isset($res)">
          <input class="btn btn-y" type="submit" value="修改" />
          <else />
          <input class="btn btn-y" type="submit" value="添加" />
        </if>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input class="btn btn-n" type="button" value="取消" onclick="javascript:history.go(-1);" />
      </div>
    </div>
    </form>
  </div>
</body>

</html>
